package com.shunwang.htmlparser.generator.impl;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import com.shunwang.htmlparser.generator.DocumentGenerator;

public class DocumentUrlGenerator<String> implements DocumentGenerator<String> {

	@Override
	public Document generator(String source) throws IOException {
			return Jsoup.connect((java.lang.String) source).get();
	}

}
